//本地存储
const key = "my-token-elemont-pc";

//获取
export const getToken = () => {
  return localStorage.getItem(key);
};

//设置
export const setToken = (newToken) => {
  return localStorage.setItem(key, newToken);
};

//删除
export const delToken = () => {
  localStorage.removeItem(key);
};
